package com.example.demo_redis_test.model;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@RestController
public class YamlController {
    @Resource
    private Yaml yaml;

    @RequestMapping("getYaml")
    public Yaml getYaml(){
        System.out.println(yaml);
        return yaml;
    }
}
